<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>实验管理系统
    </title>
    <link rel='stylesheet prefetch' href="stylesheets\style1.css">
    <link rel="stylesheet" href="stylesheets\style.css">
</head>

<body screen_capture_injected="true">
    <div>
        <h1 class="h1">实验管理系统</h1>
        <h2 class="h2">Copyright © 2017 版权归我们所有</h2>
        <div class="hr">
            <hr style=" background-color:black; height:1px" />
        </div>
        <div class="hr1">
            <hr style=" background-color:black; height:1px" />
        </div>
        <div class="td1">
            教师信息<br><br><span>姓名：</span><span><%- user.name %></span><br><br>
            <span>工号：</span><span><%- user.no %></span><br><br>
            <span>系别：</span><span><%- user.department %></span><br><br><br><br>
            <button class="btn btn-lg btn-primary btn-block" type="submit" id="tout" onclick="location.href='logout'">登出</button>
            <button class="btn btn-lg btn-primary btn-block" type="submit" id="tout" onclick="location.href='teacherup'">我的上传</button>
            <button class="btn btn-lg btn-primary btn-block" type="submit" id="tclass" onclick="location.href='class'">分班</button>
            <button class="btn btn-lg btn-primary btn-block" type="submit" id="tfb" onclick="location.href='test'">发布</button>
        </div>
        <h3 style="width:30%;height:50%;position:absolute;top:80px;left:30%">学生上交列表</h3>
        <div style="width:30%;height:50%;position:absolute;top:150px;left:30%">
            <select class="form-control" id="sel1">
            <option value="mongodb">mongodb</option>
            <option value="java">java</option>
            <option value="html5">html5</option>
            <option value="nodejs">nodejs</option>
            </select>
        </div>
        <div style="width:30%;height:50%;position:absolute;top:190px;left:30%">
            <select class="form-control" id="sel2">
            <option value="1">一班</option>
            <option value="2">二班</option>
            <option value="3">三班</option>
            <option value="4">四班</option>
            </select>
        </div>
        <div style="width:30%;height:50%;position:absolute;top:230px;left:30%">
            <select class="form-control" id="sel3">
            <option value="w1">第一周</option>
            <option value="w2">第二周</option>
            <option value="w3">第三周</option>
            <option value="w4">第四周</option>
            <option value="w5">第五周</option>
            <option value="w6">第六周</option>
            <option value="w7">第七周</option>
            <option value="w8">第八周</option>
            <option value="w9">第九周</option>
            <option value="w10">第十周</option>
            <option value="w11">第十一周</option>
            <option value="w12">第十二周</option>
            <option value="w13">第十三周</option>
            <option value="w14">第十四周</option>
            <option value="w15">第十五周</option>
            <option value="w16">第十六周</option>
            </select>
        </div>
        <div style="width:50px;height:10px;left:60%;position:absolute;top:180px">
            <button class="btn btn-lg btn-primary btn-block" type="submit" id="getstu">确定</button>
        </div>
        <div class="row-fluid-class" style="top:280px">
            <table class="table table-hover span12" border=1>
                <thead>
                    <tr>
                        <th>学生姓名</th>
                        <th>实验名称</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <% stuuplist.forEach(function(data){ %>
                        <tr>
                            <td>
                                <%= data.who %>
                            </td>
                            <td>
                                <%= data.name %>
                            </td>
                            <td>
                                <form method="post" action="/download/<%= data._id%>">
                                    <button type="submit">下载</button>
                                </form>
                            </td>
                        </tr>
                        <% }) %>
                </tbody>
            </table>
        </div>
    </div>
    <script type="text/javascript" src="javascripts/jquery.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $("#getstu").click(function () {
                var sel1 = $("#sel1").val();
                var sel2 = $("#sel2").val();
                var sel3 = $("#sel3").val();
                $.ajax({
                    url: '/getteaup',
                    type: 'get',
                    data: {
                        sel1: sel1,
                        sel2: sel2,
                        sel3: sel3
                    },
                })
                location.href = "studentup";
            });
        });
    </script>
</body>

</html>